package com.springboot.demo.design.pattern.decorator;

/**
 * 土豆装饰者
 *
 * @author supu
 * @date 2019-07-08 14:59
 **/
public class PotatoDecorator extends GreensDecorator {

    public PotatoDecorator(DecoratorComponent decoratorComponent) {
        super(decoratorComponent);
    }

    @Override
    public void addGreens() {
        decoratorComponent.addGreens();
        System.out.print(" 添加了土豆");
    }
}
